export default {
	sleep: function (time) {
		return new Promise((resolve, reject) => {
			try {
				let t = setTimeout(() => {
					clearTimeout(t);
					resolve("123");
				}, time);
			} catch (e) {
				reject(e);
			}
		});
	},
	sleep2: async function (time) {
		let result = await this.sleep(time);
		return result;
	}
}